/* 清除浏览器默认样式 */

* {
    margin: 0;
    padding: 0;
    /* 盒子模型使用border-box */
    box-sizing: border-box;
}

body {
    min-width: 320px;
    /* 根元素字体大小设置为10px，即1rem */
    font-size: 10px;
    font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
    background-color: #ffffff;
}


/* 头部部分：返回按钮、个人主页标题，在视口固定 */

header {
    position: fixed;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 100%;
    background-color: #5fc0cd;
    z-index: 10;
}

header span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

header a {
    position: absolute;
    top: 12px;
    left: 17px;
    content: "<";
    font-size: 1.2rem;
    color: #ffffff;
    text-decoration: none;
}


/* 主体部分：个人信息 -> 个人头像、姓名、年龄、坐标图像、地址、整个个人信息背景图 */

main {
    /* 对应头部和底部模块的高度 */
    margin-top: 50px;
    margin-bottom: 70px;
}

main .per-info {
    position: relative;
    height: 145px;
    /* 对子元素超出的部分做溢出隐藏处理，避免影响父级 */
    overflow: hidden;
    background: url(../images/per-info-bg.png) no-repeat;
    background-size: 100% auto;
    background-position: center;
}

main .per-info .avatar {
    /* 实现左列固定，右列自适应布局 */
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 110px;
    height: 100%;
}

main .per-info .avatar .avatar-img {
    width: 60%;
    height: 45%;
    border-radius: 50%;
    /* 当单独设置背景颜色与背景图片时，两者不能融合共存，写在一起背景颜色会透过背景图片的透明部分 */
    background: #efefef url(../images/头像.png) no-repeat;
    background-size: 65px auto;
    background-position: 0 0;
}

main .per-info .info {
    display: flex;
    /* 将两个盒子垂直排列 */
    flex-direction: column;
    /* 居中 */
    justify-content: center;
    margin-left: 110px;
    width: 100%;
    height: 100%;
}

main .per-info .info div {
    width: 192px;
    height: 28px;
    line-height: 2rem;
    color: #ffffff;
}

main .per-info .info .info-top span {
    font-size: 1rem;
}

main .per-info .info .info-bottom {
    /* 用于子元素.location定位图片 */
    position: relative;
}

main .per-info .info .info-bottom .location {
    position: absolute;
    display: block;
    height: 100%;
    width: 22px;
    background: url(../images/坐标.png) no-repeat;
    background-size: 15px auto;
    background-position: 0px 5px;
}

main .per-info .info .info-bottom span:nth-child(2) {
    margin-left: 22px;
    font-size: .9rem;
}

main .skill-info {
    border-bottom: 1px solid #e1e5e7;
    font-size: 1rem;
    line-height: 2rem;
}

main .skill-info .header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 60px;
    border: 1px solid #e1e5e7;
}

main .skill-info .header div:nth-child(1) {
    height: 20px;
    width: 15px;
    border-right: 4px solid #5fc0cd;
    margin-right: 10px;
}

main .skill-info .main>div {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 15px;
    height: 60px;
    border-bottom: 1px solid #e1e5e7;
    padding-left: 10px;
}

main .skill-info .main div:nth-child(1) div:nth-child(odd) {
    width: 76px;
    height: 32px;
    padding-left: 20px;
    color: inherit;
    background: url(../images/空红星.png) no-repeat;
    background-size: 16px auto;
    background-position: 0% 50%;
}

main .skill-info .main div div:nth-child(1) {
    /* 左列固定，右列自适应 */
    position: absolute;
    width: 86px;
    height: 32px;
    color: #999999;
}

main .skill-info .main div div:nth-child(2) {
    margin-left: 86px;
    width: 2px;
    height: 17px;
    margin-right: 20px;
    background-color: #e1e5e7;
}

main .skill-info .main div:nth-child(1) div:nth-child(2) {
    margin-left: 70px;
}

main .skill-info .main div:nth-child(4) div:nth-child(3) {
    color: #e26163;
}

main .skill-info .main>div:nth-child(5) {
    /* 设置最小高度，让其随内容自适应 */
    height: auto;
    min-height: 60px;
    border-bottom: none;
}

main .skill-info .main>div:nth-child(5) div:nth-child(3) {
    padding: 20px 20px 20px 0;
}


/* 底部部分：留言和电话联系按钮，在视口固定 */

footer {
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: center;
    /* 交叉轴垂直居中 */
    align-items: center;
    height: 70px;
    width: 100%;
    background-color: #ffffff;
}

footer button {
    width: 47%;
    height: 50px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
}

footer #btn-left {
    margin-right: 1%;
    border: 2px solid #5fc0cd;
    background-color: #ffffff;
    color: #5fc0cd;
}

footer #btn-right {
    margin-left: 1%;
    background-color: #5fc0cd;
    color: #ffffff;
}